home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-01-20 | 625 b | 31 lines | [TEXT/MMCC] |
- // CPreferences.h 1.0
- // Created by Richard A. Bray
- // ©1994 Compu-Phobic, Inc.
-
- class LFile;
-
- // Define your own structure for your preferences.
- // When the compiler supports templates, this class could be
- // set up as a template.
- typedef struct aPreference {
- Str255 text;
- } Preference;
-
-
- class CPreferences
- {
- public:
- CPreferences();
- CPreferences(OSType inCreator, ConstStr255Param inName);
- ~CPreferences(void);
-
- void CreateDefaultPreference(void);
- void LoadPreferences(void);
- void SavePreferences(void);
- void GetPreferences(Preference &ioPref);
-
- protected:
- Preference mPrefs;
- OSType mCreator;
- LFile *prefFile;
- };